package com.zstu.mall.service.impl;

import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.zstu.mall.common.BaseServiceImpl;
import com.zstu.mall.service.ProductClassService;
import com.zstu.mall.entity.ProductClass;
import com.zstu.mall.dao.ProductClassDao;

import java.util.List;

/**
 * @author     : wuyc
 * @description: ProductClassServiceImpl
 * @date       : Created in 2019/11/24
 */
@Service
public class ProductClassServiceImpl extends BaseServiceImpl<ProductClass, String, ProductClassDao> implements ProductClassService {

	@Autowired
	private ProductClassDao productClassDao;

	/**
	 * 查找所有类
	 * @param pageable
	 * @return
	 */
	@Override
	public List<ProductClass> findByStatus(Pageable pageable){ return productClassDao.findByStatus("1",pageable);}

}
